Skip to content

Conversation

@szuend
Copy link
Contributor

@szuend szuend commented Jan 8, 2026

This is the stack trace of the console message itself. If the argument is an Error object or an "Error.stack" like string we don't do anything special (yet).

The stack trace is source mapped if source maps are available.

For now, this only works for console messages of the main page target as puppeteer doesn't tell us yet from which target a console message is coming from.

Note: Even though we include legacy CodeMirror, only the "formatter_worker" entrypoint pulls this in for parsing HTML. No DOM code is actually loaded at runtime.

@szuend szuend force-pushed the stack-trace-console-message branch from 96df988 to c869965 Compare January 8, 2026 12:49
This is the stack trace of the console message itself. If the
argument is an Error object or an "Error.stack" like string we
don't do anything special (yet).

The stack trace is source mapped if source maps are available.

For now, this only works for console messages of the main page
target as puppeteer doesn't tell us yet from which target a
console message is coming from.
@szuend szuend force-pushed the stack-trace-console-message branch from c869965 to 31bb922 Compare January 19, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant